angular.module('${menuCode}')
.filter('to_trusted', ['$sce', function ($sce) {
	return function (text) {
	    return $sce.trustAsHtml(text);
	};
}])
.controller("${widgetCode}Ctrl",function($scope,AppKit){
	$scope.addEcectionModal = function() {
		$scope.modalTitle = "新增报销";
		$scope.operationType = "insert";
 		AppKit.createModal("${menuCode}","EvectionReimburseEditModal",$scope);	
	}
	
	$scope.loadEvectionListData = function() {
		var url='/aeaiem/services/EvectionReiDataProvider/rest/evection-rei-list';
		var promise = AppKit.getJsonApi(url);  
		promise.success(function(rspJson){
			$scope.evectionList = rspJson;
		})
	}
	$scope.loadEvectionListData();
});